<?php $this->import('Header') ?>
<?php $this->addCss('css/jquery.fancybox.css') ?>
<?php $this->import('Dog/TopInfo') ?>
<div class="container">
	<div class="well well-sm dog-info dog-photo">
		<p class="bg-title title">
			<span>Ta的照片</span>
		</p>
		<div id="photo-list">
			<?php foreach ($photos as $photo) { ?>
				<div class="thumbnail r" photoId="<?php echo $photo['PhotoId'] ?>" style="display: none;">
					<a href="/dog/photo/detail_<?php echo $photo['PhotoId'] ?>.html">
						<img class="js-user-photo" src="<?php echo \Util\User::getUserPhotoRectangle($photo['Path'], 400) ?>">
						<div class="hidden">
							<strong class="text-danger"><?php echo $photo['Title'] ?></span></strong>
							<strong><?php echo $photo['Desc'] ?></span></strong>
						</div>
					</a>
					<div class="p-info">
						<?php if ($photo['Title']) { ?>
							<div><span class="t">标题：</span><span class="c js-title"><?php echo $photo['Title'] ?></span></div>
						<?php } ?>
						<div><span class="t">上传时间：</span><span class="c"><?php echo date('Y-m-d H:i:s', $photo['CreateTime']) ?></span></div>
						<?php if ($photo['Desc']) { ?>
							<div><span class="t">描述：</span><span class="c js-desc"><?php echo $photo['Desc'] ?></span></div>
						<?php } ?>
					</div>
				</div>
			<?php } ?>
		</div>
	</div>
</div>
<?php $this->import('Footer') ?>
<script>
	seajs.init({
		userId: <?php echo $userInfo['UserId'] ?>
	});
</script>